//
//  BankListViewController.m
//  跨界收
//
//  Created by Allen on 2018/10/28.
//  Copyright © 2018年 gztx. All rights reserved.
//

#import "BankListViewController.h"

@interface BankListViewController ()<UITableViewDelegate,UITableViewDataSource>
@property (weak, nonatomic) IBOutlet UITableView *listTableView;
@property (nonatomic, strong) NSArray *titles;
@end

@implementation BankListViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationItem.title = @"银行";
    self.listTableView.delegate = self;
    self.listTableView.dataSource = self;
     _titles = @[@"语音/通知",@"文字/通知",@"实时交易更新",@"帮助中心",@"意见反馈",@"清除本地缓存",@"版本"];
    // Do any additional setup after loading the view from its nib.
}
#pragma mark -- UITableViewDelegate/DataSource --

- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
{
    return 1;
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return _titles.count;
}
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
    return 55;
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    static NSString *identifier = @"Cell";
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:identifier];
    if (!cell) {
        cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:identifier];
    }
    cell.textLabel.text = @"招商银行";
    cell.detailTextLabel.text = @"88888 ***************** 888";
    return cell;
}
/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
